<script>
export default {
  onLaunch: function () {
    console.log('App Launch')
    if (!uni.getStorageSync('latAndLong')) {
      let obj = {
        latitude: 40.044896,
        longitude: 117.419021
      }
      uni.setStorageSync('latAndLong', obj)
      let address = {
        "country": "中国",
        "province": "天津市",
        "city": "天津市",
        "district": "蓟州区",
        "street": "中昌北大道",
        "streetNum": "180号",
        "poiName": "东方商厦(中昌北大道)",
        "cityCode": "022"
      }
      uni.setStorageSync('address', address)
    }
    // uni.setStorageSync('token', 'eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyUGhvbmUiOiIxODIzMjYyNzI0NCIsImlkIjoiMSJ9.bbbl_CAo3JuxcOoonOrtBKqhLsQM7mUvvRKVTVecr90')
  },
  onShow: function () {
    console.log('App Show')
  },

  onHide: function () {
    console.log('App Hide')
  }
}
</script>

<style lang="scss">
/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
@import "uview-ui/index.scss";

/* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
  font-family: 'iconfont';
  /* Project id 4590879 */
  src: url('@/static/iconfont/iconfont.woff2?t=1718777338087') format('woff2'),
    url('@/static/iconfont/iconfont.woff?t=1718777338087') format('woff'),
    url('@/static/iconfont/iconfont.ttf?t=1718777338087') format('truetype');
}

.icon {
  font-family: 'iconfont';
}
</style>